package com.nowcoder.community.event;

import lombok.Data;
import lombok.EqualsAndHashCode;



@Data
@EqualsAndHashCode(callSuper = true)
public class CommentEvent extends Event{
    private int commentUserId;
    private int userIdOfEntity;
    private int postId;
    private int entityId;
    private int entityType;

    public CommentEvent setCommentUserId(int commentUserId) {
        this.commentUserId = commentUserId;
        return this;
    }

    public CommentEvent setUserIdOfEntity(int userIdOfEntity) {
        this.userIdOfEntity = userIdOfEntity;
        return this;
    }

    public CommentEvent setPostId(int postId) {
        this.postId = postId;
        return this;
    }

    public CommentEvent setEntityId(int entityId) {
        this.entityId = entityId;
        return this;
    }

    public CommentEvent setEntityType(int entityType) {
        this.entityType = entityType;
        return this;
    }
}
